package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"wx/api/internal/config"
	"wx/wxrpc/wxrpcclient"
)

type ServiceContext struct {
	Config config.Config
	WxRpc  wxrpcclient.Wxrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		WxRpc:  wxrpcclient.NewWxrpc(zrpc.MustNewClient(c.WxRpc)),
	}
}
